package com.example.tianyidemo.service.impl;

import com.example.tianyidemo.Mapper.DelpostMapper;
import com.example.tianyidemo.service.DelpostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Delpostimpl implements DelpostService {
    @Autowired
    private DelpostMapper delpostMapper;

    @Override
    public boolean deletepost(String uniqueStr) {
        int result = delpostMapper.deleteByUniqueStr(uniqueStr);
        System.out.println(uniqueStr);
        return result > 0;
    }
}
